#ifndef __TEXTUREMANAGER_H__
#define __TEXTUREMANAGER_H__

#include <OGLES/OGLESTools.h>
#define MAX_TEXTURE_NAMES	200
#define INVALID_TEXTURE		-1

class TextureManager {
public:
	static GLuint loadTextureFromFile(const char *fileName);
	static GLuint loadTextureFromPointer(unsigned int *buffer);
	static GLuint findTexture(const char *fileName);
private:
	static bool			init();
	static char			p_textureNames[MAX_TEXTURE_NAMES][40];
	static GLuint		p_textureIndex[MAX_TEXTURE_NAMES];
	static unsigned int n_text;
};

#endif
